//
//  UIViewController+GGRouteError.h
//  qqqqqq
//
//  Created by iOSer on 2017/3/3.
//  Copyright © 2017年 iOSer. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, GGError) {
    
    /** The passed URL does not match a registered route. */
    GGErrorNotFound = 45150,
    
    /** The matched route handler does not specify a target view controller. */
    GGErrorHandlerTargetOrSourceViewControllerNotSpecified = 45151,
    GGErrorBlockHandleNoReturnRequest = 45152,
    GGErrorMiddlewareRaiseError = 45153
};

@interface NSError (GGRouteError)
+(NSError *)GGNotFoundError;
+(NSError *)GGTransitionError;
+(NSError *)GGHandleBlockNoTeturnRequest;
+(NSError *)GGMiddlewareRaiseErrorWithMsg:(NSString *)error;
@end
